#ifndef _BSP_USART_H_
#define _BSP_USART_H_
#include "bsp_include.h"

typedef struct
{
	uint8_t turn_on:1;
	uint8_t turn_off:1;
	uint8_t brightness_up:1;
	uint8_t brightness_down:1;
	uint8_t alarm:1;
	uint8_t error:1;
}su03t_cmd_t;

//typedef struct
//{
//	uint8_t get_dis:1;
//}rc1650_cmd_t;


extern su03t_cmd_t g_su03t_cmd;
//extern rc1650_cmd_t g_rc1650_cmd;
//extern uint16_t g_rc1650_distance;

void bsp_su03t_init(void);
void bsp_su03t_send(void);
void bsp_su03t_isr(UART_HandleTypeDef *huart);

void bsp_rc1650_init(void);
void bsp_rc1650_send(void);
void bsp_rc1650_isr(UART_HandleTypeDef *huart);

#endif /* _BSP_USART_H_ */
